<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
<jsp:include page="../include/head.jsp" />
</head>
<body>
	<c:set var="page" value="programme" scope="request" />
	<jsp:include page="../include/header.jsp" />
	<div class="row" style="color: black;">
		<div class="maincontainer">
			<div class="container2" style="padding-top: 1px;">

				<h2 style="color: #D71A5E;">Concurrent Session ${type eq
					1?'A':type eq 2?'B':type eq 3?'C':'D'}</h2>
				
				<p>Click <a href="Concurrent_Session_Details.pdf" target="_blank">here</a> to download concurrent session detail.</p>

				<c:forEach items="${sessionList}" var="s" varStatus="sStatus">
					<c:if test="${s.type lt 5}">
					<div class="row">
						<div class="panel-group" id="accordion">
							<div class="panel panel-default" style="border: 0px;">
								<div class="panel-heading" style="background-color: white;">
									<h4 class="panel-title">
										<a class="accordion-toggle" data-toggle="collapse"
											data-parent="#accordion" href="#${s.typeStr}${s.no}">
											<table border="0" cellspacing="0" cellpadding="0">
												<tr>
													<td width="20px"><img src="img/right-arrow.png"></td>
													<td style="color: #D71A5E;">${s.typeStr}${s.no} :
														${s.name}</td>
												</tr>
											</table> <sf:errors path="${s.typeStr}${s.no}" cssClass="error" />
										</a>
									</h4>
								</div>
								<div id=${s.typeStr}${s.no} class="panel-collapse collapse" style="background-color: white;">
									<div class="panel-body"  style="border: 0px;">
									<img src="img/box-top.png">
										<table border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td width="20px"></td>
												<td><p>
														<span style="color: #D71A5E">Venue:</span>
														<c:out value="${s.venue}" />
													</p>
													<c:choose>
													<c:when test="${s.hasChild gt 0}">
														<c:forEach items="${sessionList}" var="s2" varStatus="sStatus">
														<c:if test="${s2.type eq 5 and s2.parentSessionId eq s.id}"><br/>
															<c:out value="${s2.name}"/>
															<c:forEach items="${s2.speakers}" var="speaker" varStatus="speakerStatus">
																<p>
																	<span style="color: #D71A5E">Speaker:</span>
																	<c:out value="${speaker.name}" />
																	<c:if test="${not empty speaker.name and not empty speaker.company}">
																	,
																	</c:if>
																	<c:out value="${speaker.company}" />
																</p>
															</c:forEach>
															<p>
																<span style="color: #D71A5E">Abstract:</span>
																<c:out value="${s2.description}" escapeXml="false" />
															</p>
														</c:if>
														</c:forEach>
													</c:when>
													<c:otherwise>
														<c:forEach items="${s.speakers}" var="speaker"
														varStatus="speakerStatus">
															<p>
																<span style="color: #D71A5E">Speaker:</span>
																<c:out value="${speaker.name}" />
																<c:if test="${not empty speaker.name and not empty speaker.company}">
																,
																</c:if>
																<c:out value="${speaker.company}" />
															</p>
														</c:forEach>
														<p>
															<span style="color: #D71A5E">Abstract:</span>
															<c:out value="${s.description}" escapeXml="false" />
														</p> 
													</c:otherwise>
													</c:choose>
													</td>
											</tr>
										</table>
									<img src="img/box-bottom.png">
									</div>
								</div>
							</div>
						</div>
					</div>
					</c:if>
				</c:forEach>
					<br><br>
			</div>
		</div>
	<jsp:include page="../include/bottombody.jsp" />
</body>
</html>